package com.project.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 库存表
 */
@Data
@TableName("t_inventory")
public class InventoryBean {
    /**
     * 产品编号
     */
    @TableId("productNum")
    private String productNum;
    /**
     * 商品名
     */
    @TableField("commodityName")
    private String commodityName;
    /**
     * 商品类型
     */
    @TableField("type")
    private String type;
    /**
     * 采购阈值
     */
    @TableField("remindNum")
    private Integer remindNum;
    /**
     * 总数量
     */
    @TableField("sumNum")
    private Integer sumNum;

    public InventoryBean() {
    }

    public InventoryBean(String productNum, String commodityName, String type, int remindNum, int sumNum) {
        this.productNum = productNum;
        this.commodityName = commodityName;
        this.type = type;
        this.remindNum = remindNum;
        this.sumNum = sumNum;
    }
}
